libxl: event: poller pipe optimisation
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 10 Jan 2020 13:11:46 +0000 (13:11 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Mon, 27 Jan 2020 16:03:17 +0000 (16:03 +0000)
commit67a97ca9550f117bd4e690a01c34398ddc1bf0d6
treef02a5b3acfc888f42826734644c03cdb01ea1d4d
parent5a533d0ba575e3ba7536b22bc3bc156e9b8a679b
libxl: event: poller pipe optimisation

Track in userland whether the poller pipe is nonempty.  This saves us
writing many many bytes to the pipe if nothing ever reads them.

This is going to be relevant in a moment, where we are going to create
a situation where this will happen quite a lot.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
Tested-by: George Dunlap <george.dunlap@citrix.com>
tools/libxl/libxl_event.c
tools/libxl/libxl_internal.h